package com.sanyang.pda.dialog;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.sanyang.pda.adapter.SelectGoodsAdapter;
import com.wangshen.base.dialog.base.BaseDialog;
import com.wangshen.projectbase.R;

import java.util.ArrayList;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SelectGoodsDialog extends BaseDialog {
    @BindView(R.id.rv_list)
    RecyclerView rvList;
    SelectGoodsAdapter adapter;
    public SelectGoodsDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    public void initView() {
        ButterKnife.bind(this);
        rvList.setLayoutManager(new LinearLayoutManager(getContext()));
        adapter=new SelectGoodsAdapter(R.layout.item_select_goods_dialog,new ArrayList<>());
        rvList.setAdapter(adapter);
    }

    @Override
    public void initData() {

    }

    @Override
    public int getView() {
        return R.layout.dialog_select_goods;
    }
}
